package com.study.talk.module.entity.vo;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.validation.constraints.Min;
import javax.validation.constraints.NotEmpty;


@Data
@AllArgsConstructor
@NoArgsConstructor
@ApiModel("注册请求实体类")
public class RegisterUserVo {

    @ApiModelProperty("用户名")
    @NotEmpty(message = "用户名不能为空")
    @Min(value = 6, message = "用户名长度不能小于6")
    private String username;

    @ApiModelProperty("密码")
    @NotEmpty(message = "密码不能为空")
    @Min(value = 8, message = "密码长度不能小于8")
    private String password;

    @ApiModelProperty("手机号码")
    @NotEmpty(message = "手机号不能为空")
    private String phoneNumber;

}
